* {
  box-sizing: border-box;
}


/* 全局样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Roboto, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", "Microsoft Jhenghei", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #1c1b1b;
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: hidden;
  height: 100vh;
}
* {  
  box-sizing:border-box;
}

.title {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
    z-index: 1000;
    height: 60px;
}

.biaoqian {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    margin-bottom: 0;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    z-index: 900;
    height: 60px;
}

/* 主容器样式 - 覆盖全屏 */
.container {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    z-index: 10;
}

.column {
    flex: 1;
    margin-bottom: 0;
}

.column1 {
    width: 100%;
    height: 100%;
}
.logo path{
  pointer-events:none;
  fill:none;
  stroke-linecap:round;
  stroke-width:7;
  stroke:rgb(255, 255, 255);
}
.wechat-group img{
  max-width:220px;
  height:auto;
  border-top-left-radius:8px;
  border-top-right-radius:8px;
  border-bottom-right-radius:8px;
  border-bottom-left-radius:8px;
  margin-top:0px;
  margin-right:auto;
  margin-bottom:0px;
  margin-left:auto;
  width:100%;
}
.welcome-img img{
  width:100%;
}
.search-container{
  position:fixed;
  right:10px;
  top:10px;
  width:200px;
  z-index:1000;
}
.button-container{
   position:fixed;
    top: 120px; /* 为顶部菜单和标签按钮留出空间 */
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    width: 100%;
    height: calc(100vh - 120px);
    margin: 0;
    padding: 0;
    overflow:hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    z-index: 5;
    background-color: #ffffff;
  }
  
  /* 隐藏所有滚动条 */
  .button-container::-webkit-scrollbar {
    display: none;
  }
  
  .button-grid::-webkit-scrollbar {
    display: none;
  }
  
  html {
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
  }
.button-grid{
    display:grid;
    grid-template-columns:repeat(100,1fr);
    gap:0;
    width:100%;
    height:100%;
    overflow:hidden;
    overflow-x: hidden;
    overflow-y: hidden;
  }
.button-grid button{
  width:100%;
  height:100%;
  border:none;
  margin:0;
  padding:0;
  cursor:pointer;
  transition:background-color 0.2s ease;
  min-height: 4px;
  min-width: 4px;
}
.button-grid button:hover{
  border-top-width:1px;
  border-right-width:1px;
  border-bottom-width:1px;
  border-left-width:1px;
  border-top-style:solid;
  border-right-style:solid;
  border-bottom-style:solid;
  border-left-style:solid;
  border-top-color:rgba(238, 12, 12, 0.7);
  border-right-color:rgba(238, 12, 12, 0.7);
  border-bottom-color:rgba(238, 12, 12, 0.7);
  border-left-color:rgba(238, 12, 12, 0.7);
  border-image-source:initial;
  border-image-slice:initial;
  border-image-width:initial;
  border-image-outset:initial;
  border-image-repeat:initial;
}
.popover{
  position:absolute;
  background-image:initial;
  background-position-x:initial;
  background-position-y:initial;
  background-size:initial;
  background-repeat:initial;
  background-attachment:initial;
  background-origin:initial;
  background-clip:initial;
  background-color:rgb(245, 245, 245);
  border-top-width:1px;
  border-right-width:1px;
  border-bottom-width:1px;
  border-left-width:1px;
  border-top-style:solid;
  border-right-style:solid;
  border-bottom-style:solid;
  border-left-style:solid;
  border-top-color:rgb(225, 232, 237);
  border-right-color:rgb(225, 232, 237);
  border-bottom-color:rgb(225, 232, 237);
  border-left-color:rgb(225, 232, 237);
  border-image-source:initial;
  border-image-slice:initial;
  border-image-width:initial;
  border-image-outset:initial;
  border-image-repeat:initial;
  border-top-left-radius:5px;
  border-top-right-radius:5px;
  border-bottom-right-radius:5px;
  border-bottom-left-radius:5px;
  padding-top:10px;
  padding-right:10px;
  padding-bottom:10px;
  padding-left:10px;
  box-shadow:rgba(0, 0, 0, 0.2) 0px 5px 20px;
  display:none;
  width:300px;
}
.popover textarea{
  width:97%;
  height:70px;
  margin-bottom:5px;
  padding-top:5px;
  padding-right:5px;
  padding-bottom:5px;
  padding-left:5px;
  border-top-width:1px;
  border-right-width:1px;
  border-bottom-width:1px;
  border-left-width:1px;
  border-top-style:solid;
  border-right-style:solid;
  border-bottom-style:solid;
  border-left-style:solid;
  border-top-color:rgb(209, 213, 218);
  border-right-color:rgb(209, 213, 218);
  border-bottom-color:rgb(209, 213, 218);
  border-left-color:rgb(209, 213, 218);
  border-image-source:initial;
  border-image-slice:initial;
  border-image-width:initial;
  border-image-outset:initial;
  border-image-repeat:initial;
  border-top-left-radius:4px;
  border-top-right-radius:4px;
  border-bottom-right-radius:4px;
  border-bottom-left-radius:4px;
  resize:none;
}
.popover .confirm-button{
  background-color:rgb(29, 161, 242);
  color:rgb(255, 255, 255);
  border-top-width:initial;
  border-right-width:initial;
  border-bottom-width:initial;
  border-left-width:initial;
  border-top-style:none;
  border-right-style:none;
  border-bottom-style:none;
  border-left-style:none;
  border-top-color:initial;
  border-right-color:initial;
  border-bottom-color:initial;
  border-left-color:initial;
  border-image-source:initial;
  border-image-slice:initial;
  border-image-width:initial;
  border-image-outset:initial;
  border-image-repeat:initial;
  padding-top:5px;
  padding-right:10px;
  padding-bottom:5px;
  padding-left:10px;
  cursor:pointer;
  border-top-left-radius:25px;
  border-top-right-radius:25px;
  border-bottom-right-radius:25px;
  border-bottom-left-radius:25px;
  display:block;
  margin-top:10px;
}
.popover .char-count{
  position:absolute;
  right:10px;
  bottom:10px;
  font-size:12px;
  color:rgb(101, 119, 134);
}
.popover .button-container1{
  display:flex;
  justify-content:flex-start;
  margin-top:5px;
}
.popover .cancel-button{
  background-color:rgb(213, 218, 222);
  color:rgb(28, 27, 27);
  border-top-width:initial;
  border-right-width:initial;
  border-bottom-width:initial;
  border-left-width:initial;
  border-top-style:none;
  border-right-style:none;
  border-bottom-style:none;
  border-left-style:none;
  border-top-color:initial;
  border-right-color:initial;
  border-bottom-color:initial;
  border-left-color:initial;
  border-image-source:initial;
  border-image-slice:initial;
  border-image-width:initial;
  border-image-outset:initial;
  border-image-repeat:initial;
  padding-top:5px;
  padding-right:10px;
  padding-bottom:5px;
  padding-left:10px;
  cursor:pointer;
  border-top-left-radius:25px;
  border-top-right-radius:25px;
  border-bottom-right-radius:25px;
  border-bottom-left-radius:25px;
  display:block;
  margin-top:10px;
}
.popover .count-text{
  background-color:rgb(213, 218, 222);
  color:rgb(28, 27, 27);
  border-top-width:initial;
  border-right-width:initial;
  border-bottom-width:initial;
  border-left-width:initial;
  border-top-style:none;
  border-right-style:none;
  border-bottom-style:none;
  border-left-style:none;
  border-top-color:initial;
  border-right-color:initial;
  border-bottom-color:initial;
  border-left-color:initial;
  border-image-source:initial;
  border-image-slice:initial;
  border-image-width:initial;
  border-image-outset:initial;
  border-image-repeat:initial;
  padding-top:5px;
  padding-right:10px;
  padding-bottom:5px;
  padding-left:10px;
  cursor:pointer;
  border-top-left-radius:25px;
  border-top-right-radius:25px;
  border-bottom-right-radius:25px;
  border-bottom-left-radius:25px;
  display:block;
  margin-top:10px;
}

.htmlpage-row{
  display:table;
  padding-top:10px;
  padding-right:10px;
  padding-bottom:10px;
  padding-left:10px;
  width:100%;
}
.htmlpage-cell{
  width:8%;
  display:table-cell;
  height:75px;
}
}
@media (max-width: 768px){
  .htmlpage-cell{
    width:100%;
    display:block;
  }
}

/* 工具栏基础样式 - 改为相对定位 */
  .grid-tools {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin: 0;
    height: auto;
  }

/* 工具栏拖动句柄 */
.tools-handle {
  width: 20px;
  height: 20px;
  background-color: #e9ecef;
  cursor: move;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

/* 工具栏按钮样式 */
.grid-tools button {
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 6px 12px;
  margin: 0 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.grid-tools button:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

/* 网格大小标签样式 */
.grid-tools #gridSizeLabel {
  margin: 0 8px;
  font-weight: bold;
  color: #495057;
  min-width: 40px;
  text-align: center;
}

/* 颜色选择器样式 */
.grid-tools input[type="color"] {
  width: 40px;
  height: 30px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  margin: 0 8px;
  cursor: pointer;
  background-color: #fff;
}

/* 时间输入框样式 */
.grid-tools input[type="number"] {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  margin: 0 8px;
  font-size: 14px;
}

/* 工具栏拖动时的样式 */
.grid-tools:active {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.01);
}

/* 工具栏内部元素的统一样式 */
.grid-tools > * {
  vertical-align: middle;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .grid-tools {
    flex-wrap: wrap;
    padding: 6px 8px;
  }
  
  .grid-tools > * {
    margin: 4px 2px;
  }
  
  .tools-handle {
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
  }
}

/* 用户个人信息样式 */
.profile-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.profile-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.profile-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}

.photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #1d9bf0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.photo:hover {
  transform: scale(1.05);
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
}

.name {
  font-size: 24px;
  font-weight: bold;
  color: #111827;
  margin-bottom: 8px;
  font-family: inherit;
}

.company {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 6px;
  font-weight: 500;
}

.address, .phone {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.profile-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1d9bf0;
  object-fit: cover;
}

.profile-info span {
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  font-size: 14px;
}

/* 侧边栏个人信息样式 */
.side-menu-profile {
  display: flex;
  align-items: center;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  margin-bottom: 20px;
  margin-top: -100px; /* 使用较大的负边距向上移动 */
  gap: 10px;
  position: relative;
  z-index: 10;
  flex-shrink: 0; /* 防止被压缩 */
}

.side-menu-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1d9bf0;
  object-fit: cover;
}

.side-menu-profile span {
  font-size: 16px;
  color: #1f2937;
  font-weight: 600;
}

/* 用户信息响应式调整 */
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .info {
    padding-left: 0;
    padding-top: 15px;
  }
  
  .name {
    font-size: 20px;
  }
  
  .company {
    font-size: 14px;
  }
  
  .address, .phone {
    font-size: 12px;
    justify-content: center;
  }
}
